package com.hc.util;

import com.hc.util.fillData.WalkInfo;

public final class MyPoint {
	private int icon;
	private int index;
	private WalkInfo info;

	@Deprecated
	public MyPoint() {
		
	}

	public MyPoint(WalkInfo info) {
		this.info = info;
	}

	public WalkInfo getInfo() {
		return info;
	}

	public float getX() {
		
		
		return (info.x);
	}

	public void setX(float x) {
		info.x = x;
	}
	
	public void  setTurnAngle(float turnAngle){
		info.turnAngle = turnAngle;
		
	}
	
	public float getTurnAngle(){
		
		return info.turnAngle;
	}
	public float getY() {
		return (info.y);
	}

	public void setY(float y) {
		info.y = y;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getIcon() {
		return icon;
	}

	public void setIcon(int icon) {
		this.icon = icon;
	}

	public MyPoint cloneXY() throws CloneNotSupportedException {
		WalkInfo info = new WalkInfo();
		info.x = this.info.x;
		info.y = this.info.y;
		info.turnAngle = this.info.turnAngle;
		info.turnStr = this.info.turnStr;
		MyPoint point = new MyPoint(info);
		point.icon = this.icon;
		return point;
	}
}
